#ifndef _CON_TASK_H_
#define _CON_TASK_H_

#include "my_main.h"
#define far_long 1
#define Buzzer(Hz,Pow) {TIM4->ARR=Hz;\
												TIM_SetCompare(TIM4,3,(float)Pow/200*Hz);}


typedef enum
{
	Buzzer_Free,
	Buzzer_Sys_Init_OK,
	Buzzer_BSP_Init_OK,
}Buzzer_e;
typedef struct 
{
	u8 temp;
	u8 mode[0xff];
	u8  free_flag;
}Buzzer_Con_t;

extern Buzzer_Con_t Buzzer_Con;

void Buzzer_Con_Set_FromISR(u8 mdoe);
void Buzzer_Con_Set(u8 mdoe);
void Chassis_Task(void* parameter);
void Buzzer_Task(void* parameter);

#endif












